package fun.fykj.liu.controller;


import fun.fykj.liu.cofig.SysConstant;
import fun.fykj.liu.model.Result;
import fun.fykj.liu.service.IUserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * <p>
 * 前端控制器
 * </p>
 *
 * @author DongJin
 * @since 2020-01-16
 */
@RestController
@RequestMapping(SysConstant.API+"/user")
public class UserController {

    @Autowired
    private IUserService userService;

    //获取管理员（本周以及下周）
    @PostMapping("/getManager")
    public Result getManager() {
        return userService.getManager();
    }

}
